//
//  HSYColorHelper.m
//  高仿暴走斗图
//
//  Created by huangsongyao on 16/3/4.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import "HSYColorHelper.h"
#import "UIImage+Canvas.h"
#import "UIColor+Hex.h"

static HSYColorHelper *colorHelper;

@implementation HSYColorHelper

+ (instancetype)shareInstance {
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        colorHelper = [HSYColorHelper new];
    });
    return colorHelper;
}

- (UIImage *)canvasImageWithColor:(UIColor *)color {
    
    UIImage *image = [UIImage createImgWithColor:color];
    return image;
}

- (UIImage *)canvasImageWithColor:(UIColor *)color rect:(CGRect)rect {
    
    UIImage *image = [UIImage createImgWithColor:color rect:rect];
    return image;
}

- (instancetype)init {
    if (self = [super init]) {
        NSLog(@"HSYColorHelper");
        [self setup];
    }
    return self;
}

- (void)setup {
    
    _navBarColor        = [UIColor colorWithHexString:@"F07F32"];
    _lineColor          = [UIColor colorWithHexString:@"BEBEBE"];
    
    _deleteColor        = [UIColor colorWithHexString:@"E21315"];
    _cancelColor        = [UIColor colorWithHexString:@"F3AF12"];
}

@end
